package com.example.hibernate.model.repository;

import java.util.List;

import com.example.hibernate.model.bll.EmployeeBLL;
import com.example.hibernate.model.entity.Employee;


public class Employees {

	private final EmployeeBLL employeeBLL;
	
	public Employees() {
		this.employeeBLL = new EmployeeBLL();
	}

	public boolean insertEmployee(Employee entity) {
		return employeeBLL.insertEntity(entity);
	}

	public boolean updateEmployee(Employee entity) {
		return employeeBLL.updateEntity(entity);
	}

	public boolean deleteEmployee(Employee entity) {
		return employeeBLL.deleteEntity(entity);
	}

	public List<Employee> getAllEmployees() {
		return employeeBLL.getAllEntity();
	}

	public Employee findEmployeeById(long id) {
		return employeeBLL.findEntityById(id);
	}
	
	
}
